package com.anycl.design.j2ee.interceptingfilter;

public class Main {
    public static void main(String[] args) {
        // 新建一个过滤器管理器
        FilterManager filterManager = new FilterManager(new Target());
        filterManager.addFilter(new LogFilter());
        filterManager.addFilter(new AuthFilter());

        // 请求客户端
        Client client = new Client();
        client.setFilterManager(filterManager);
        client.sendRequest("/api/user");
    }
}
